package com.dream.style.app.fr;

import android.content.Context;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.Toast;

import com.dream.style.R;
import com.dream.style.app.ac.main.KztActivity;
import com.dream.style.app.ac.shouye.GoodMagActivity;

/**
 * @Created by lincyu
 * @Time: 2018/11/15 16:40
 * @Decs: 类
 */
public class Shouye extends Fragment {

    static Shouye shouye;
    public static Shouye newInstance(){
        if (shouye!=null){
            return shouye;
        }
        shouye = new Shouye();
        return shouye;
    }

    @Override
    public void onAttach(Context context) {
        super.onAttach(context);
    }

    @Override
    public void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }


    /** 商品管理*/
    private ImageView iv_goodMag;
    @Nullable
    @Override
    public View onCreateView(
            @NonNull LayoutInflater inflater,
            @Nullable ViewGroup container,
            @Nullable Bundle savedInstanceState)
    {
       View v =  inflater.inflate(R.layout.fr_shouye, container, false);

        iv_goodMag = v.findViewById(R.id.iv_goodMag);
        iv_goodMag.setOnClickListener(new View.OnClickListener()
    {
        @Override
        public void onClick(View v)
        {
            return;
//            KztActivity ac = (KztActivity) getActivity();
//            ac.start(GoodMagActivity.class);
        }
    });


        return v;
    }


}
